﻿using Microsoft.Extensions.Localization;
using SkyWalking.WebApiTest.Localization;
using Volo.Abp.DependencyInjection;
using Volo.Abp.Ui.Branding;

namespace SkyWalking.WebApiTest;

[Dependency(ReplaceServices = true)]
public class WebApiTestBrandingProvider : DefaultBrandingProvider
{
    private IStringLocalizer<WebApiTestResource> _localizer;

    public WebApiTestBrandingProvider(IStringLocalizer<WebApiTestResource> localizer)
    {
        _localizer = localizer;
    }

    public override string AppName => _localizer["AppName"];
}
